﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.TeamMemberModel>" %>

<div id="editteammember" style ="text-align:center;margin-left:12%">
<br />

 <% using (Ajax.BeginForm("EditTeammember", new AjaxOptions { UpdateTargetId = "editteammember" }))
    {%>
<%: Html.ValidationSummary(true)%>
     <table   id="tablenoframe" >
            <tr>
            <td class="label"><%: Html.LabelFor(model => model.ProjectName)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.ProjectName, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.ProjectName)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.EmployeeId )%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EmployeeId, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.EmployeeId)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.EmployeeName)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EmployeeName, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.EmployeeName)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Position)%></td>
            <td class="editor-field">
                <%: Html.DropDownList ("Position",(SelectList)ViewData ["Position"],"")%>
                <%: Html.ValidationMessageFor(model => model.Position)%>
            </td>
            </tr>

            <tr>
            <td class="label"><%: Html.LabelFor(model => model.DirectorId)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.DirectorId)%>
                <%: Html.ValidationMessageFor(model => model.DirectorId)%>
            </td>

            <td class="label"><%: Html.LabelFor(model => model.Director)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Director)%>
                <%: Html.ValidationMessageFor(model => model.Director)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.StartTime)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.StartTime)%>
                <%: Html.ValidationMessageFor(model => model.StartTime)%>
            </td>
 <%--           <td class="label"><%: Html.LabelFor(model => model.EndTime)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EndTime)%>
                <%: Html.ValidationMessageFor(model => model.EndTime)%>
            </td>--%>
            
            
            <td colspan ="2" align ="left"><input type="submit" value="更新"  style ="margin-left:20px;" /></td>
            </tr>
            </table>
<%} %>

</div>